package com.powernode.crm.activity.service.impl;

import com.powernode.crm.activity.mapper.ActivityRemarkMapper;
import com.powernode.crm.activity.model.ActivityRemark;
import com.powernode.crm.activity.service.ActivityRemarkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ActivityRemarkServiceImpl implements ActivityRemarkService {

    @Autowired
    private ActivityRemarkMapper activityRemarkMapper;


    @Override
    public List<ActivityRemark> queryAllByActivityId(String activityId) {
        return activityRemarkMapper.selectByActivityId(activityId);
    }

    @Override
    public int addActivityRemark(ActivityRemark activityRemark) {
        return activityRemarkMapper.insertSelective(activityRemark);
    }

    @Override
    public int removeRemark(String remarkId) {
        return activityRemarkMapper.deleteByPrimaryKey(remarkId);
    }
}
